package com.zhoushihao.class0820;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.HashSet;
import java.util.Set;

public class CheckIn {
    public static void main(String[] args) {
        Set<String> students = new HashSet<>();
        try(BufferedReader br = new BufferedReader(new FileReader("C:/Users/周士好/Desktop/homework/student_names.txt"))) {
            String line;
            while ((line = br.readLine()) != null) {
                students.add(line);
            }
        }catch (Exception e){
            e.printStackTrace();
        }
        File files = new File("C:/Users/周士好/Desktop/homework/20250819");
        File[] fileList = files.listFiles();
        if (fileList != null) {
            for (File file : fileList) {
                String []arr = file.getName().split("\\.");
                String name = arr[0];
                students.remove(name);
            }
        }
        System.out.println(students);
    }
}
